﻿#include "pch.h"
#include "pointer.h"

class tp{
public:
	void test() {
		printf("hello");
	}
};

void testPointter() {


	double array[3] = { 111.0,222.0,333.0 };

	double *point = array;
	double (*pointA)[3] = &array;

	for (int i = 0; i <= 2; i++) {

		cout << " " << point[i];

	}
	cout << endl;
	for (int i = 0; i <= 2; i++) {

		cout << " " << (*pointA)[i];

	}

	tp* ctp = new tp;
	std::shared_ptr<tp> stp(ctp);
	stp->test();
}